SelectColorCallback

This callback is invoked when the user clicks an <input type='color'> HTML5 element. You can use this callback to display your own color chooser dialog or set the required color programmatically without displaying any dialogs.

The Params describes the color chooser dialog params.

Use the select method to notify the browser that the color has been selected.

Use the cancel to cancel the color selection.

If the callback throws an exception, the cancel method will be invoked.

Inheritors

Types

Link copied to clipboard
An action providing a response to the SelectColorCallback.
Link copied to clipboard
interface Params
The parameters of the SelectColorCallback.

Functions

Link copied to clipboard
abstract fun on(params: P, tell: R)
Invoked when the callback needs a response for the given callback parameters.